<!--
 * @Author: GL
 * @Date: 2022-09-23 15:06:10
 * @LastEditors: GL
 * @LastEditTime: 2022-10-11 00:56:13
 * @Description: 内容推荐
-->
<template>
  <el-table
    :data="tableData"
    style="width: 100%"
    :row-class-name="tableRowClassName"
  >
    <el-table-column prop="title" label="标题" width="180" />
    <el-table-column prop="author" label="作者" width="180" />
    <el-table-column prop="content" label="名句" />
  </el-table>
</template>

<script>
import { article } from "../../network/article.js";
export default {
  data() {
    return {
      tableData:[]
  }},
  created() {
    const token = sessionStorage.getItem('token')
    article(token).then(res => {
      console.log(res);
      this.tableData = res.data
    })
  }
}
</script>

<style>

</style>